<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>紫陶学堂</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/page.css">
    <script src="../js/jquery-3.2.1.min.js"></script>
    <script src="../js/media.js"></script>
    <script src="../js/common.js"></script>
    <style>
        .active {
            display: block;
        }
    </style>
</head>

<body>
    <!--头部-->
    <div class="public-header flex">
        <!--<span class="public-header-left-search"></span>-->
        <span class="public-header-left-back"></span>
        <span class="public-header-center">紫陶学堂</span>
        <span class="public-header-right"></span>
    </div>

    <!--正文-->
    <div class="Purple-pottery-school bc-gray">
        <!-- <div class="input">
            <input type="text" placeholder="在这里搜索全部问题">
        </div>
        <div class="hd flex">
            <a href="javascript:;" class="active">紫陶百问</a>
            <a href="javascript:;">帮助中心</a>
        </div> -->
        <div class="bd">
            <div class="bd-1 bd-0 active">
                <ul>
                    <!-- <li class="flex">
                        <span class="span-left">操作类</span>
                        <span class="span-right">全部</span>
                      
                    </li> -->
                    <li class="" v-for="item in datas" style="height:auto;">
                        <p class="flex" style="">
                            <em class="em-left">{{item.question}}</em>
                            <em class="em-right">{{item.approve}}</em>
                        </p>

                        <div style="display:block;padding:0.12rem 0;">
                            {{item.answer}}
                        </div>
                    </li>
                </ul>
            </div>
            <div class="bd-2 bd-0">

            </div>
        </div>
    </div>
    <script src='../js/vue.js'></script>
    <script src='../js/vue-resource.min.js'></script>

    <script>
        $(function () {
            new Vue({
                el: 'body',
                data: {

                },
                ready: function () {
                    this.$http.get(base_url + "ZITAOHUI/question").then(
                        function (data) {
                            console.log(data)
                            let all_data = data.data.extend.data;
                            this.$set('datas', all_data)

                        }
                    )
                },
                methods: {

                }

            })
        })
    </script>
</body>

</html>